package org.eenie.dagger2.utils;

import com.orhanobut.logger.BuildConfig;
import com.orhanobut.logger.Logger;

/**
 * Created by Eenie on 2016/8/31 11:20.
 * Des：日志输出工具
 */

public class LogUtil {

    private static boolean DEBUG = BuildConfig.DEBUG;

    public static void json(String json) {
        if (DEBUG) {
            Logger.json(json);
        }
    }

    public static void json(Object obj) {
        if (DEBUG) {
            Logger.json(obj.toString());
        }
    }

    public static void e(String msg) {

        if (DEBUG) {
            Logger.e(msg);
    }
    }
}
